package com.ktjy.mapper.user;

import com.ktjy.pojo.Flower;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerMapper {
    /**
     * 增
     * @return
     */
    int insert(Flower flower);

    /**
     * 删
     * @param flowerId
     * @return
     */
    int delete(@Param("flowerId")int flowerId);

    /**
     * 改
     * @param flower
     * @return
     */
    int update(Flower flower);

    /**
     * 查
     * @return
     */
    List<Flower> select(@Param("flowerName")String flowerName, @Param("flowerNumber")int flowerNumber,
                        @Param("pageBegin")int pageBegin, @Param("pageSize")int pageSize);

    /**
     * 查询总数
     * @return
     */
    int count();
}
